package me.wangqu.weiyouqu.web.rest.business.service;

import me.wangqu.weiyouqu.web.rest.business.dao.RanklistDao;
import me.wangqu.weiyouqu.web.rest.business.model.RankModel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by joln on 2016/6/27.
 */
@Service
public class RanklistService {
    private final Logger log = LoggerFactory.getLogger(RanklistService.class);
    @Autowired
    private RanklistDao ranklistDao;

    /**
     * 获取排行榜列表
     *
     * @return
     */
    public List<RankModel> getAllRanklists() {
        try {
            return ranklistDao.getAllRanklists();
        } catch (Exception e) {
            log.error("获取排行榜列表失败", e.getMessage());
        }
        return null;
    }


}
